<link rel="stylesheet" href="/res/friends/css/index-friend.css" type="text/css" />
<link rel="stylesheet" href="/res/friends/css/style-friend.css" type="text/css" />

<?if (count($this->ret) > 0):?>
<div class="seplinetop">共有<strong class="red"><?= $this->pageInfo['COUNT']?></strong>位好友</div>
<div class="column">
<div class="column-wrap">
<div class="column-m">
<?foreach ($this->ret as $i => $row):?>	
<div class="friend190">
<div class="avatar50"><a href="/?uid=<?=$row['uid']?>"><img src="<?= member_util_avatar::get_avatar($row['uid'], 'small')?>" width="50px" height="50px" /></a></div>
<div class="leftfix">
	<div class="leftfix-r">
    <?if(self::$is_self):?>
    	<p><a href="<?=self::_makeURL('sms', 'index', 'view_send_form', array('reciever'=>$row['username']))?>" >发短信</a></p>
    <?endif;?>
	</div><!--leftfix-r-->
	<div class="leftfix-l">
		<?if(Util::isOnline($row['uid'])):?><i:online xmlns:i="178"/><?endif;?>
		<i:name xmlns:i="178" uid="<?=$row['uid']?>" username="<?=$row['username']?>" length="10" <?if ($row['is_check']):?>class="a-id-right dynamic-name"<?endif;?>/>
		<?if(self::$is_self):?>
    		<p>备注：
    		<?if($row['remark']):?>
				<span class="friend_remark" id="remark_<?=$row['uid']?>">
					<?=htmlspecialchars(mb_strimwidth($row['remark'] , 0 , 10, '...', 'utf-8'))?>
					<a href="javascript:void(0)" class="modity-classify" title="点击修改备注" onclick="javascript:Friends.remarkFrom('<?=$row['uid']?>')"></a>
				</span>
				<span id="remark_input_<?=$row['uid']?>" style="display:none;">
					<input type="text" value="<?= htmlspecialchars($row['remark'])?>" id="remark_text_<?=$row['uid']?>" name="<?=$row['uid']?>" onkeydown="if(event.keyCode==13){Friends.editRemark(this, 0);}" onBlur="javascript:Friends.editRemark(this, 0)" size="10" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:74px">
				</span>
			<?else:?>
				<span class="friend_remark"  id="remark_<?=$row['uid']?>">
					<?=htmlspecialchars(mb_strimwidth($row['username'] , 0 , 10, '...', 'utf-8'))?>
					<a href="javascript:void(0)" class="modity-classify" title="点击修改备注" onclick="javascript:Friends.remarkFrom('<?=$row['uid']?>')"></a>
				</span>
				<span id="remark_input_<?=$row['uid']?>" style="display:none;">
					<input type="text" value="<?=htmlspecialchars($row['username'])?>" id="remark_text_<?=$row['uid']?>" name="<?=$row['uid']?>"  onkeydown="if(event.keyCode==13){Friends.editRemark(this, 0);}" onBlur="javascript:Friends.editRemark(this, 0)" size="10" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:74px">
				</span>
			<?endif;?>
			</p>	
    	<?endif;?>
	</div>
</div>
<div class="clearfix"></div>
</div>
<?endforeach;?>
<!--end friend list-->
<div class="clearfix"></div>
</div><!--column-m-->
</div><!--column-wrap-->
<div class="sepline13"><?=$this->genPages($this->pageInfo, array('uid' => $this->uid));?></div>
</div>
<?else:?>
	<i:info type="friendly" xmlns:i="178"><?php if(!$uid and self::$is_self){echo '你';} else {echo $this->getThe();}?>还没有添加好友</i:info>
<?endif;?>

<!-- 分割线 -->

<!--<div class="h_left">
   <ul class="h_menu_b">
      <li><a href="#">我的好友</a></li>
      <li><a href="#">添加好友</a></li>
   </ul>
   <?/*if (count($this->ret) > 0):*/?>
   <div class="h_yonhu">
   	  <?/*foreach ($this->ret as $i => $row)*/?>
      <dl>
       <dt><a class="bo" href="/?uid=<?/*=$row['uid']*/?>"><img src="<?/*= member_util_avatar::get_avatar($row['uid'])*/?>" width="48" height="48" /></a></dt>
       <dd><a class="cl fw" href="/?uid=<?/*=$row['uid']*/?>"><?/*=$row['username']*/?></a></dd>
      <?/*if(self::$is_self):*/?>
      <dd>
      	<span class="friend_remark" id="remark_<?/*=$row['uid']*/?>">
			<?/*=htmlspecialchars(mb_strimwidth($row['remark'] , 0 , 10, '...', 'utf-8'))*/?>
			<a href="javascript:void(0)" class="modity-classify" title="点击修改备注" onclick="javascript:Friends.remarkFrom('<?/*=$row['uid']*/?>')"></a>
		</span>
      	<span id="remark_input_<?/*=$row['uid']*/?>" style="display:none;">
			<input type="text" value="<?/*=htmlspecialchars($row['username'])*/?>" id="remark_text_<?/*=$row['uid']*/?>" name="<?/*=$row['uid']*/?>"  onkeydown="if(event.keyCode==13){Friends.editRemark(this, 0);}" onBlur="javascript:Friends.editRemark(this, 0)" size="10" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:74px">
		</span>
      	<a href="javascript:void(0)">删除好友</a>
      </dd>
     <?/*endif;*/?>
     </dl>
  </div>
  <div class="h_next">
     <?=$ret['pages']?>
  </div>
<!--  <?/*else:*/?>
  --><?/*endif;*/?>
 </div>